<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="Creating an SFTP User">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="en-us_topic_0000002200029949.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="EN-US_TOPIC_0000002164788856">
  <meta name="DC.Language" content="en-us">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>Creating an SFTP User</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="EN-US_TOPIC_0000002164788856"></a><a name="EN-US_TOPIC_0000002164788856"></a>
  <h1 class="topictitle1">Creating an SFTP User</h1>
  <div>
   <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_en-us_topic_0000001123352597_p159125100541">The system administrator can create an SFTP user with SFTP storage space. The system administrator can connect to the SFTP server as the SFTP user to upload and download user data.</p>
   <div class="section" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_en-us_topic_0223232402_section52135297">
    <h4 class="sectiontitle">Prerequisites</h4>
    <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_p115222054124215">The SFTP service has been enabled.</p>
   </div>
   <div class="section" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_section186551153144815">
    <h4 class="sectiontitle">Procedure</h4>
    <ol id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_en-us_topic_0000001123352597_ol61721291281">
     <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_en-us_topic_0000001123352597_li31809451213"><span>In the navigation pane, choose <span class="uicontrol" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002200070033_uicontrol34741722132420"><b>System &gt; Settings &gt; SFTP Service</b></span>.</span></li>
     <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_li8802632469"><span>In the <span class="uicontrol" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_uicontrol1916413215418"><b><span id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_text366619010111"><strong>Authorized Users</strong></span></b></span> area, click <span class="uicontrol" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_uicontrol748115312417"><b><span id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_text17551118111113"><strong>Add</strong></span></b></span>.</span></li>
     <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_en-us_topic_0000001123352597_li6423103312715"><a name="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_en-us_topic_0000001123352597_li6423103312715"></a><a name="en-us_topic_0000002200155717_en-us_topic_0000001792505514_en-us_topic_0000001123352597_li6423103312715"></a><span>Set SFTP user parameters. <a href="#EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_table13374941017">Table 1</a> lists the parameters.</span><p></p>
      <div class="tablenoborder">
       <a name="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_table13374941017"></a><a name="en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_table13374941017"></a>
       <table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_table13374941017" frame="border" border="1" rules="all">
        <caption>
         <b>Table 1 </b>SFTP user parameters
        </caption>
        <colgroup>
         <col style="width:23.96%">
         <col style="width:76.03999999999999%">
        </colgroup>
        <thead align="left">
         <tr id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_row937139171015">
          <th align="left" class="cellrowborder" valign="top" width="23.96%" id="mcps1.3.3.2.3.2.1.2.3.1.1"><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_en-us_topic_0171822298_p43287665">Parameter</p></th>
          <th align="left" class="cellrowborder" valign="top" width="76.03999999999999%" id="mcps1.3.3.2.3.2.1.2.3.1.2"><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_en-us_topic_0171822298_p16640014">Description</p></th>
         </tr>
        </thead>
        <tbody>
         <tr id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_row153810991014">
          <td class="cellrowborder" valign="top" width="23.96%" headers="mcps1.3.3.2.3.2.1.2.3.1.1 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p6517565"><span id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_text4386152991115"><strong>Username</strong></span></p></td>
          <td class="cellrowborder" valign="top" width="76.03999999999999%" headers="mcps1.3.3.2.3.2.1.2.3.1.2 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p58160785">Name of the new SFTP user</p> <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p13403145">[Value range]</p>
           <ul id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_ul53519446">
            <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_li11912974">The value contains 6 to 32 characters.</li>
            <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li1695319470583">The name can contain only digits, letters, and underscores (_), and must start with a letter or underscore (_).</li>
            <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_li40107904">The name cannot contain sensitive characters (root, bin, daemon, adm, lp, sync, shutdown, halt, mail, operator, games, ftp, nobody, dbus, tss, polkitd, libstoragemgmt, unbound, setroubleshoot, chrony, ntp, sshd, rpc, cloudmonitor, rpcuser, nfsnobody, radvd, uvpkmc, dnsmasq, saslauth, qemu, gluster, dhcpd, and hwcdm). The sensitive characters are case insensitive.</li>
           </ul> <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p14107846">[Example]</p> <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p59861751">sftpuser</p></td>
         </tr>
         <tr id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_row13381496108">
          <td class="cellrowborder" valign="top" width="23.96%" headers="mcps1.3.3.2.3.2.1.2.3.1.1 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p18455085"><span id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_text846114201115"><strong>Password</strong></span></p></td>
          <td class="cellrowborder" valign="top" width="76.03999999999999%" headers="mcps1.3.3.2.3.2.1.2.3.1.2 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p18466913">Password of the new SFTP user</p> <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p19425014">[Value range]</p>
           <ul id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_ul40607404">
            <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_li29922324">The password contains 8 to 64 characters.</li>
            <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_li865461">The password must contain at least three types of the following: special characters (~!@%^*_=+{}[]:,.\/? and spaces), uppercase letters, lowercase letters, and digits.</li>
            <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li974935915104">The password cannot be a palindrome, for example, hw123@321wh.</li>
            <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li01371247111513">The password cannot contain four or more consecutive identical characters.</li>
            <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li16385950191615">The password cannot contain three or more consecutive characters (q to m, a to z, and 1 to 9) or the characters in reverse order.</li>
            <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_li26941704">The password cannot contain three or more consecutive characters in the username or the username spelled backwards.</li>
            <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li9256111951418">The password cannot contain sensitive characters, including root, bin, daemon, adm, lp, sync, shutdown, halt, mail, operator, games, ftp, nobody, dbus, tss, polkitd, libstoragemgmt, unbound, setroubleshoot, chrony, ntp, sshd, rpc, cloudmonitor, rpcuser, nfsnobody, radvd, uvpkmc, saslauth, qemu, gluster, dhcpd, and hwcdm.</li>
            <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li13956131271810">Characters are case insensitive in the preceding rules.</li>
           </ul> <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p65087093">[Example]</p> <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p48912926">abfq@1248</p></td>
         </tr>
         <tr id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_row17381292106">
          <td class="cellrowborder" valign="top" width="23.96%" headers="mcps1.3.3.2.3.2.1.2.3.1.1 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p22716784"><span id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_text18714205116116"><strong>Confirm Password</strong></span></p></td>
          <td class="cellrowborder" valign="top" width="76.03999999999999%" headers="mcps1.3.3.2.3.2.1.2.3.1.2 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p28120176">Confirm password of the new SFTP user</p> <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p63141756">[Value range]</p> <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p31404899"><span class="uicontrol" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_uicontrol1998712110125"><b><span id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_text1164214316124"><strong>Confirm Password</strong></span></b></span> must be consistent with <span class="uicontrol" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_uicontrol148782301219"><b><span id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_text1834449151217"><strong>Password</strong></span></b></span>.</p> <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0223232411_p14208637">[Example]</p> <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_p148921364119">abfq@1248</p></td>
         </tr>
         <tr id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_row8393941011">
          <td class="cellrowborder" valign="top" width="23.96%" headers="mcps1.3.3.2.3.2.1.2.3.1.1 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_p320516317119"><span id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_text1271371110129"><strong>Quota</strong></span></p></td>
          <td class="cellrowborder" valign="top" width="76.03999999999999%" headers="mcps1.3.3.2.3.2.1.2.3.1.2 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_en-us_topic_0171822298_p4100073">Quota for the newly created SFTP user</p> <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_p11684161853319">The unit can be <span class="uicontrol" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_uicontrol174764362569"><b>GB</b></span> or <span class="uicontrol" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_uicontrol19508204175616"><b>TB</b></span>.</p> <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_p368912186328">The value must be greater than 0 GB and less than 800 TB. The value must be a valid integer.</p></td>
         </tr>
        </tbody>
       </table>
      </div> <p></p></li>
     <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_en-us_topic_0000001123352597_li117683399153"><span>Click <span class="uicontrol" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_uicontrol13635121717252"><b><span id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_text46351917162517"><strong>OK</strong></span></b></span>.</span></li>
    </ol>
   </div>
   <div class="section" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_section36681347143711">
    <h4 class="sectiontitle">Follow-up Procedure</h4>
    <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_p9316791620">After creating an SFTP user on the management interface, you can perform the following operations to use the SFTP service.</p>
    <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_p5884711091">If the local server runs the Windows OS, you are advised to download the SFTP tool for upload and download operations. If the local server runs the Linux OS, refer to the following steps:</p>
    <ol id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_ol4986539664">
     <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_li3354184518532">Run the following command to connect to the SFTP backup server as user <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_b595613720374">sftpuser</strong>:<pre class="screen" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_screen129721413151412">sftp -oPort=<em id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_i1386516478370">Port number</em> <em id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_i1866114713374">username</em>@<em id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_i18866164753715">IP address</em></pre> <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_p139371550547"><a href="#EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_table19645122441616">Table 2</a> describes the parameters.</p>
      <div class="tablenoborder">
       <a name="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_table19645122441616"></a><a name="en-us_topic_0000002200155717_en-us_topic_0000001792505514_table19645122441616"></a>
       <table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_table19645122441616" frame="border" border="1" rules="all">
        <caption>
         <b>Table 2 </b>Parameters for connecting to the SFTP backup server
        </caption>
        <colgroup>
         <col style="width:27.189999999999998%">
         <col style="width:72.81%">
        </colgroup>
        <thead align="left">
         <tr id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_row8646202412164">
          <th align="left" class="cellrowborder" valign="top" width="27.189999999999998%" id="mcps1.3.4.4.1.4.2.3.1.1"><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_p136465247167">Parameter</p></th>
          <th align="left" class="cellrowborder" valign="top" width="72.81%" id="mcps1.3.4.4.1.4.2.3.1.2"><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_p14646624111610">Description</p></th>
         </tr>
        </thead>
        <tbody>
         <tr id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_row5646152413166">
          <td class="cellrowborder" valign="top" width="27.189999999999998%" headers="mcps1.3.4.4.1.4.2.3.1.1 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_p18646152415168">username</p></td>
          <td class="cellrowborder" valign="top" width="72.81%" headers="mcps1.3.4.4.1.4.2.3.1.2 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_p11646024131618">SFTP user added in <a href="#EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_en-us_topic_0000001123352597_li6423103312715">3</a>. <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_b2726337203816">sftpuser</strong> is used as an example.</p></td>
         </tr>
         <tr id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_row206461247169">
          <td class="cellrowborder" valign="top" width="27.189999999999998%" headers="mcps1.3.4.4.1.4.2.3.1.1 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_p136461724121612">IP Address</p></td>
          <td class="cellrowborder" valign="top" width="72.81%" headers="mcps1.3.4.4.1.4.2.3.1.2 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_p11646524141617">IP address of the SFTP server, that is, the IP address queried in <a href="en-us_topic_0000002200029845.html#EN-US_TOPIC_0000002200029845__en-us_topic_0000002164829010_en-us_topic_0000001839224857_li1225141815444">2</a> in <a href="en-us_topic_0000002200029845.html#EN-US_TOPIC_0000002200029845">Viewing the SFTP Service</a>.</p></td>
         </tr>
         <tr id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_row1864642415166">
          <td class="cellrowborder" valign="top" width="27.189999999999998%" headers="mcps1.3.4.4.1.4.2.3.1.1 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_p18646124131612">Port Number</p></td>
          <td class="cellrowborder" valign="top" width="72.81%" headers="mcps1.3.4.4.1.4.2.3.1.2 "><p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_p464611241164">The default value is <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_b1696153913402">30177</strong>.</p></td>
         </tr>
        </tbody>
       </table>
      </div>
      <div class="note" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_note613292113402">
       <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_en-us_topic_0000001123352597_p10738881161">If exception <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b388712107501">WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!</strong> occurs when the SFTP user is used to connect to the SFTP backup server, , enter the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b547083125218">/root/.ssh/</strong> directory on the local server, delete the line containing the SFTP server IP address from the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b171996473524">known_hosts</strong> file, and try again.</p>
       </div>
      </div></li>
     <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_li832614421873">Enter the password of user <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b9389135612508">sftpuser</strong> for logging in to the SFTP server as prompted. The SFTP CLI is displayed.
      <div class="note" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_note166010101164">
       <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_p14601210101611">After logging in to the SFTP server, you are advised to add one or more client user public keys to the SFTP server by referring to <a href="en-us_topic_0000002164669354.html">Adding the Public Key of an SFTP Client User to the SFTP Server</a>. After the addition, you can use the public key to log in to the server as the corresponding user on the SFTP client in password-free mode.</p>
       </div>
      </div></li>
     <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_li16417193210263">Run the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b1686585111261">cd</strong> <em id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_i594116127281">Username</em> command to go to the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b16653298017">/sftpuser</strong> directory on the SFTP backup server. Run the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b6184822102720">l</strong><strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b185977156279">cd</strong><strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b23508364280"> /opt</strong> command to go to the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b1203446004">/opt</strong> directory on the local server.</li>
     <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_li3986153910618">Check the directories on the SFTP backup server and local server.<p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_p1831669663"><a name="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000001792505514_li3986153910618"></a><a name="en-us_topic_0000002200155717_en-us_topic_0000001792505514_li3986153910618"></a>Run the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b1858653018515">pwd</strong> command to view the current directory of the SFTP backup server. Run the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b058617301510">lpwd</strong> command to view the current directory of the local server. For example, in the command output, the directory of the SFTP backup server is <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b20303849102415">/sftpuser</strong> and the directory of the local server is <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b12309104913241">/opt</strong>.</p>
      <ul id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_ul176441153121720">
       <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li20538141261815">Use SFTP to upload a file to the SFTP backup server.<p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_p202762217910"><a name="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li20538141261815"></a><a name="en-us_topic_0000002200155717_en-us_topic_0000002164828902_li20538141261815"></a>Run the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b03161191569">put /opt/file1.conf /sftpuser</strong> command to upload the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b271211216523">file1.conf</strong> file in the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b771291285212">/opt</strong> directory on the local server to the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b1071314125520">/sftpuser</strong> directory on the SFTP backup server.</p></li>
       <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li129701921131816">Use SFTP to upload a directory to the SFTP backup server.
        <ol type="a" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_ol5565614144416">
         <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li145651314104418">Run the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b638572214535">mkdir </strong><em id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_i123914229533">file1</em> command to create the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b183915228534">file1</strong> directory in the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b17392132295317">/sftpuser</strong> directory.<p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_p10561641864">The name of the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b203581370531">file1</strong> directory must be the same as the name of the directory to be uploaded on the local server.</p></li>
         <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li1581595354411">Run the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b16250125685319">put -r /opt/</strong><em id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_i10250956135312">file1</em><strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b825065625311"> /sftpuser</strong> command to upload the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b15251135665310">/opt/file1</strong> directory on the local server to the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b42511556185310">/sftpuser</strong> directory on the SFTP backup server.</li>
        </ol></li>
       <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li176447532177">Use SFTP to download a file to the local server.<p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_p44601261085"><a name="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li176447532177"></a><a name="en-us_topic_0000002200155717_en-us_topic_0000002164828902_li176447532177"></a>Run the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b1431616915612">get /sftpuser/file.conf /opt</strong> command to download the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b64133287549">file.conf</strong> file in the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b641311281543">/sftpuser</strong> directory on the SFTP backup server to the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b17414628115415">/opt</strong> directory on the local server.</p></li>
       <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li165559441812">Use SFTP to download a directory to the local server.
        <ol type="a" id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_ol1986715275012">
         <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li169631813261">Run the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b166581746105616">mkdir </strong><em id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_i196581046165619">file</em> command to create the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b206581646195618">file</strong> directory in the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b665894619562">/opt</strong> directory.<p id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_p1832318141361">The name of the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b148933559560">file</strong> directory must be the same as the name of the directory to be downloaded on the SFTP backup server.</p></li>
         <li id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_li19521112325019">Run the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b17570148115717">get -r /sftpuser/</strong><em id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_i457111816570">file</em><strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b457148195717"> /opt</strong> command to download the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b157115811577">/sftpuser/file</strong> directory on the SFTP backup server to the <strong id="EN-US_TOPIC_0000002164788856__en-us_topic_0000002200155717_en-us_topic_0000002164828902_b05712805718">/opt</strong> directory on the local server.</li>
        </ol></li>
      </ul></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>Parent topic:</strong> <a href="en-us_topic_0000002200029949.html">Managing the SFTP Service (Applicable to 1.6.0 and Later Versions) (Applicable to Some Models)</a>
    </div>
   </div>
  </div>
 </body>
</html>